<?php
/**
 * View:
 * Erstellt die auszugebende Daten
 *
 * @author		Joachim Ruf
 * @copyright	Copyright (c) 2003-2013 Loresoft Software (http://www.loresoft.de)
 * @license		http://yapary.loresoft.de/lizenzbedingungen     New BSD License
 *
 * */


Class Yapary_MVC_SimpleMVC_View
{
	protected $registry;
	protected $model;
	protected $partial;
	private   $arr		= array();
	protected $arrRoute = array();


    /**
	* @desc Yapary_MVC_SimpleMVC_View
	*/
	function __construct (
							&$_oModel,
							Yapary_MVC_SimpleMVC_Partial &$_oPartial,
							array &$_arrRoute
	) {
		$this->registry			= Yapary_MVC_SimpleMVC_Registry::getInstance();

		$this->model			= &$_oModel;
		$this->partial			= &$_oPartial;
		$this->arrRoute			= $_arrRoute;
	}


	public function __set($_name, $_value) {
		$this->arr[$_name] = $_value;
	}

	public function __get($_name) {
		if (!isset($this->arr[$_name])) {
			return NULL;
		}

		return $this->arr[$_name];
	}


}



?>
